read a line of text in python